<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>

<html>
<head>
<base href="${contextPath}">

<title>首页</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<style>
body{margin:20px; background:url(./images/loadbeijing.gif) repeat bottom;}

#loader_container {
  text-align:center;
  position:absolute;
  top:45%;
  width:100%;
  left: 0;
  right:0;
}
#loader {
  font-family:Tahoma, Helvetica, sans;
  font-size:11.5px;
  color: #fff;
  background-color:#000;
  padding:10px 0 16px 0;
  margin:0 auto;
  display:block;
  width:130px;
  border:1px solid #abc;
  text-align:left;
  z-index:2;
}
#loader_bg {
  background-color: #abc;
  position:relative;
  top:8px;
  left:8px;
  height:7px;
  width:113px;
  font-size:1px;
}
#progress {
  height:5px;
  font-size:1px;
  width:1px;
  position:relative;
  top:1px;
  left:0px;
  background-color: #fff;
}

</style>
<script type="text/javascript">

var t_id = setInterval(animate,20);
var pos=0;
var dir=2;
var len=0;
function animate()
{
var elem = document.getElementById('progress');
if(elem != null) {
if (pos==0) len += dir;
if (len>32 || pos>79) pos += dir;
if (pos>79) len -= dir;
if (pos>79 && len==0) pos=0;
elem.style.left = pos;
elem.style.width = len;
}
}
</script>
</head>

<body>

<div id="loader_container">
<div id="loader">
<div align="center">页面正在载入中 ...</div>
<div id="loader_bg"><div id="progress"> </div></div>
</div>
</div>
</body>
<script type="text/javascript">

  window.location.href="${ctx}/indexAction.do?method=workTableDatas";

</script>
</html>
